<template>
  <div id="goods-detail">
    <van-nav-bar
      title="付款"
      left-text="返回"
      right-text="搜索"
      left-arrow
      @click-left="onClickLeft"
      fixed
      safe-area-inset-bottom="fasle"
    />
    <van-notice-bar
      left-icon="volume-o"
      text="在代码阅读过程中人们说脏话的频率是衡量代码质量的唯一标准23432421342134231423。"
    />
    <van-steps :active="active">
      <van-step>买家下单</van-step>
      <van-step>商家接单</van-step>
      <van-step>买家提货</van-step>
      <van-step>交易完成</van-step>
    </van-steps>
    <van-card
      num="1"
      price="30.90"
      desc="香朵儿运动服套装女2021春秋新款学生韩版宽松时尚休闲大码两件套"
      title="香朵儿运动服套装"
      thumb="http://t03img.yangkeduo.com/images/2018-04-08/b493a724cb17bf149259143833d865f6.jpeg"
    />

    <!-- <van-icon name="wechat" size="40" color="#05B410"/>
    <van-icon name="aliapy" size="40" color="#00A0E8"/> -->
    <van-cell is-link @click="showPopup">微信支付</van-cell>
    <van-popup v-model="show" position="bottom" :style="{ height: '30%' }"
      ><van-icon name="wechat" size="40" color="#05B410"
    /></van-popup>
    <van-cell is-link @click="showPopup">支付宝支付</van-cell>
    <van-popup v-model="show" position="bottom" :style="{ height: '30%' }"
      ><van-icon name="aliapy" size="40" color="#00A0E8"
    /></van-popup>
    
    <van-submit-bar :price="3090" button-text="确认支付" @submit="onSubmit"  />
  </div>
</template>

<script>
import { Toast } from "vant";

export default {
  data() {
    return {
      show: false,
    };
  },
  methods: {
    onClickLeft() {
      this.$router.go(-1);
    },
    showPopup() {
      this.show = true;
    },
    onSubmit(){
      Toast.success('支付成功');
      this.$router.push({name: "homehot"})
      
    },
    

  },
};
</script>

<style scoped>
.van-nav-bar--fixed {
  height: 46px;
}
